/*
 *
 * Copyright (c) 2021
 * User:Dybala
 * File:testjwt.java
 * Date:2021/11/08 14:27:08
 */

package com.example.pubinfo;


import com.utils.JwtUtils;
import org.junit.jupiter.api.Test;

public class testjwt {
    String t="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2MzY5MDAzNzcsImVtYWlsIjoiMzA1NTUzMTM4QHFxLmNvbSJ9.AvtlkrnQ2QkR441Ybakgd2eRgLpyU_Q9vOgcS7gw8Ls";
    String t1="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2MzcwNzQzNzEsImVtYWlsIjoiMDAxQHFxLmNvbSJ9.wpMWo__FzZU1Q8CZERe65tgX_6ArbeBGnYmyihe0-Vg";
    @Test
    public void test(){
        String id = JwtUtils.getEmail(t);
        System.out.println(id);
    }
    @Test
    public void test1(){
        String id = JwtUtils.getEmail(t1);
        System.out.println(id);
        boolean verify = JwtUtils.verify(t1, id);
        System.out.println(verify);
    }
}
